﻿using MaterialDesignThemes.Wpf;
using Prism.Mvvm;
using System.Collections.Generic;
using System.Windows.Controls;

namespace Client.Model
{
    public class MainMenu : BindableBase
    {
        public int ID { get; set; }

        public string Name { get; set; }

        public string Icon { get; set; }

        private List<SubMenu> subMenus = new List<SubMenu>();

        public List<SubMenu> SubMenus
        {
            get { return subMenus; }
            set
            {
                subMenus = value;
                subMenus.ForEach(subMenu =>
                {
                    subMenu.Parent = this;
                });
            }
        }


        public string Screen { get; set; }


        private bool? _checked = false;

        public bool? Checked
        {
            get { return _checked; }
            set
            {
                _checked = value;
                RaisePropertyChanged("Checked");
            }
        }


    }
}
